/*
 * 作者: 侯晓宇
 * 时间: 2017-01-11 
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {
	return {

		openloading: function(title, text) {

			var _title = "";
			var _text = "";
			if (typeof(title) != "undefined" && title != null) {

				_title = title;

				if (typeof(text) != "undefined" && text != null) {
					_text = text;
				}
			}
			api.hideProgress();
			api.showProgress({
				style: 'default',
				animationType: 'fade',
				title: _title,
				text: _text,
				modal: true
			});



		},
		closeloading: function() {
			api.hideProgress();
		}
	}
});